<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
html>
<head>
    <title>Title</title>
</head>
<body>
<h1>jsp入门</h1>
<div>
    <%
        System.out.println("xx");

        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd,HH-mm-ss");
        String format = sdf.format(date);
        out.print(format); //在网页上输出
    %>
</div>
</body>
</html>